﻿/*********************************************************************************
 *Author:         OnClick
 *Version:        1.0
 *UnityVersion:   2018.3.11f1
 *Date:           2019-04-07
 *Description:    IFramework
 *History:        2018.11--
*********************************************************************************/
using System;

namespace IFramework
{
    public class ResAsset : IDisposable
    {
        private Type type;

        private ResourceType resType;
        private UnityEngine.Object asset;
        private ABAsset aBAsset;
        private string path;
        public Type Type { get { return type; } }

        public string Path { get { return path; } }

        public ResourceType ResType { get { return resType; } }

        public UnityEngine.Object Asset { get { return asset; } }
        public ABAsset ABAsset { get { return aBAsset; } }
        public void SetVal(ABAsset aBAsset, UnityEngine.Object asset, ResourceType resType, string path, Type type)
        {
            this.asset = asset;
            this.aBAsset = aBAsset;
            this.resType = resType;
            this.path = path;
            this.type = type;
        }
        public void Dispose()
        {
            asset = null;
            aBAsset = null;
        }
    }
}
